﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Model;
using Automobile.service.DAL;
using System.Data;


namespace Automobile.service.BLL
{
   public  class PurchaseBll
    {
        PurchaseDal dal = new PurchaseDal();
        /// <summary>
        /// 显示采购信息
        /// </summary>
        /// <returns></returns>
        public List<PurchaseModel> Purchase()
        {
            return dal.Purchase();
        }
        /// <summary>
        /// 添加采购信息
        /// </summary>
        /// <returns></returns>
        public int AddPurchase(PurchaseModel s)
        {
            return dal.AddPurchase(s);
        }
        /// <summary>
        /// 删除采购信息
        /// </summary>
        /// <returns></returns>
        public int DelePurchase(int Purchase_Id)
        {
            return dal.DelePurchase(Purchase_Id);
        }

        /// <summary>
        /// 取单个采购信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetPurchase(string Purchase_Id)
        {
            return dal.GetPurchase(Purchase_Id);
        }

        /// <summary>
        /// 更新采购信息
        /// </summary>
        /// <param name="stu"></param>
        /// <returns></returns>
        public int UpdatePurchase(PurchaseModel s)
        {
            return dal.UpdatePurchase(s);
        }
    }
}
